import { createApp } from 'vue'
import router from '@/router/index'
import App from './App.vue'
import { createPinia } from 'pinia'
import '@/assets/styles/rest.scss'
import '@/assets/styles/global.scss'
import '@/assets/styles/element.scss'
import { setDomFontSize } from '@/utils/reset'
import directive from '@/directive/index'
import 'animate.css'
setDomFontSize()
const app = createApp(App)
Object.keys(directive).forEach((key) => app.directive(key, directive[key]))
app.use(router).use(createPinia()).mount('#app')
